import { createRouter, createWebHashHistory } from "vue-router";
export default createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            redirect: '/loginPage'
        },
        {
            path:'/loginPage',
            component:()=>import('../views/login/loginPage.vue')
        },
        {
            name:'admin',
            path: '/admin',
            component: () => import("../views/admin/index.vue"),
            children:[{
                path:'',
                redirect:'/admin/homePage'
            },
            {
                path:'homePage',
                component:()=>import('../views/admin/homePage/homePages.vue')
            }]
            // children: [{
            //     path:'',
            //     redirect:'/admin/homePage'
            // },
            //     {
            //     path:'homePage',
            //     component:()=>import('../views/admin/homePage/homePages.vue')
            // },{
            //     path: 'imgShow',
            //     component: () => import('../views/admin/banner/imgShow.vue')
            // },
            // {
            //     path: 'addImg',
            //     component: () => import('../views/admin/banner/addImg.vue')
            // },
            // {
            //     path: 'shopLists',
            //     component: () => import('../views/admin/shopss/shopLists.vue')
            // },
            // {
            //     path: 'addGoods',
            //     component: () => import("../views/admin/shopss/addGoods.vue")
            // },
            // {
            //     path:'manageList',
            //     component:()=>import('../views/admin/manages/manageList.vue')
            // },
            // {
            //     path:'addManage',
            //     component:()=>import('../views/admin/manages/addManage.vue')
            // },
            // {
            //     path:'showOrder',
            //     component:()=>import('../views/admin/order/showOrder.vue')
            // }
            // ]
        }
    ]
})